package copyengine.scenes.viewport
{
	import copyengine.screenResize.IScreenResizeListener;

	import flash.display.DisplayObject;
	import flash.display.DisplayObjectContainer;

	public interface ICEViewport extends IScreenResizeListener
	{
		function moveTo(_posX:int, _posY:int):void

		function updateListener():void;
		function addListener(_listener:ICEViewportListener):void;
		function removeListener(_listener:ICEViewportListener):void;

		/**
		 * start 会trigger viewport 向listener发送viewportInitialized function
		 * initialize函数不会
		 */
		function start():void;
		function initialize(_posX:int, _posY:int, _width:int, _height:int):void;
		function dispose():void;

		function get container():DisplayObjectContainer;
		function get viewportWidth():int;
		function get viewportHeight():int;
		function get currentPosX():int;
		function get currentPosY():int;
	}
}
